package com.pcbly.web.persistence.client;

import java.util.List;

import com.pcbly.web.bean.client.CustomerBean;
import com.pcbly.web.bean.client.CustomerListBean;
import com.pcbly.web.components.hibernate.support.Page;
import com.pcbly.web.persistence.BaseDao;

public interface CustomerDao extends BaseDao<CustomerBean> {

	CustomerBean saveCustomerBean(CustomerBean bean) throws Exception;

	void deleteCustomerBeanById(String id) throws Exception;

	Page<CustomerListBean> findCustomerBeanByCond(CustomerBean bean,
			Page<CustomerListBean> page, String orderByName, boolean asc)
			throws Exception; 
	List<CustomerBean> findCustomerBeansByName(String name)throws Exception;
}
